package com.tsd.common.dao;

import com.tsd.common.entity.CommonParameterValue;
import com.tsd.common.entity.CommonParameterValueExt;
import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：CommonParameterValueMapper
 *
 * @author zsy
 * @date 2019/12/06 10:58:19
 */
public interface CommonParameterValueMapper {

    CommonParameterValue selectByPrimaryKey(Long id);

    CommonParameterValueExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(CommonParameterValue record);

    int insertSelective(CommonParameterValue record);

    int insertList(@Param("list") List<CommonParameterValue> list);

    int updateByPrimaryKey(CommonParameterValue record);

    int updateByPrimaryKeySelective(CommonParameterValue record);

    int updateList(@Param("list") List<CommonParameterValue> list);

    List<CommonParameterValue> selectByEntity(CommonParameterValueExt record);

    List<CommonParameterValue> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<CommonParameterValue> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<CommonParameterValue> selectByParams(@Param("params") Map<String, Object> params);

    List<CommonParameterValue> selectByKey(@Param("params") Map<String, Object> params);

    Integer checkDuplicatedObj(CommonParameterValueExt record);

    int deleteLogicBySidList(BatchDeleteLogicVo logicVo);
}
